﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KgUtils.Web
{
    public static partial class UriExtension
    {
        public static string GetUrlWithoutQuery(this Uri uri)
        {
            if (!uri.Query.IsNullOrEmpty())
                return uri.AbsoluteUri.Replace(uri.Query, String.Empty);
            else
                return uri.AbsoluteUri;
        }
    }
}
